package lt.ntec.danblog.server.core.model;

import java.util.Map;
import java.util.Set;

public interface TagDAO extends BaseDAO<Tag> {

    public Tag getTagByValue(String value);

    public void deleteParentFromTags(Taggable entity);

    public Set<? extends Tag> getTagsByParent(Taggable entity);

    public Tag saveUniqueTag(Tag entity);

    public Map<Class<?>, Set<Long>> getParentsByTagId(Long id);
}
